<template>
  <el-input v-model="input" @input="change" />
</template>

<script setup lang="ts">
import { ref } from 'vue'
defineOptions({ name: 'Child' })
const props = defineProps<{ modelValue: string }>()
const emits = defineEmits(['update:modelValue'])
const input = ref(props.modelValue)
const change = (value: string) => {
  emits('update:modelValue', value)
}
const changeLog = () => {
  console.log('change')
}
defineExpose({ changeLog })
</script>

<style scoped>

</style>